import vue, { shallowReactive } from "vue";
import vuex from 'vuex'

import mutations from './mutations'
import actions from './actions'
import getters from "./getters";

// 安装插件
vue.use(vuex)

const state = {
  cartList: []
}
// 创建实例对象
const store = new vuex.Store({
  state: state,
  mutations: mutations,
  actions: actions,
  getters: getters
})

// 挂载到vue实例中
export default store
